
#include <cstdio>
#include <BTime>
#include <BDisk>
#include "member_BDisk.h"

using namespace BWE;

#define member					(*(member_BDisk*)_ptr)
#define member_allocate()		_ptr = new member_BDisk(this)
#define member_release()		delete (member_BDisk*)_ptr


BDisk::BDisk()
{
	member_allocate();
}
BDisk::~BDisk()
{
	member_release();
}

BDisk::Type BDisk::type() const
{
	return member.type;
}

int BDisk::sectorsPerCluster() const
{
	return member.sectorsPerCluster;
}
int BDisk::bytesPerSector() const
{
	return member.bytesPerSector;
}
int BDisk::numberOfFreeClusters() const
{
	return member.numberOfFreeClusters;
}
int BDisk::totalNumberOfClusters() const
{
	return member.totalNumberOfClusters;
}

